<template>
  <div class="<%= name %>">
    <%= name %> 组件
  </div>
</template>

<script setup>
  import { onMounted } from "vue"
  const props = defineProps({
    name: {
      type: String,
      default: "xiaomo",
    },
  })

  onMounted(() => {
    console.log('组件挂载完成');
  })
</script>

<style scoped lang="scss">
  .<%=name %> {}
</style>